<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="../application/vue.js"></script>
    <style>
        body{
            margin-bottom:500px;
        }
        [v-cloak]{
            display:none;
        }
    </style>
</head>
<body>
    <div id="app">
        <p v-text="msg"></p>
        <p v-text="arr"></p>
        <p v-text="obj"></p>
        <p v-text="null"></p>
        <p v-text="undefined"></p>
        <p v-text="str"></p>
        <p v-text="'梦云'"></p>
        <p v-text="Math.random()"></p>
        <p v-html="str"></p>
        <hr>
        <div v-pre>
            <p v-text="msg"></p>
            <p v-html="str"></p>
        </div>
        <hr>
        <div v-once>
            <p v-text="msg"></p>
        </div>
        <hr>
        <p v-cloak v-text="msg"></p>
        <p v-text="'梦云'"></p>
    </div>
</body>
<script>
    new Vue({
        el:"#app",
        data:{
            msg:"v-text温习",
            arr:[1,2,3,4,5],
            null:null,
            undefined:undefined,
            obj:{name:"iboy"},
            str:"<h3>this is H3!</h3>"
        }
    })
</script>
</html>